//
//  BTHospitalLearnCell.m
//  BaxTer
//
//  Created by 陈武琦 on 16/9/1.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "BTHospitalLearnCell.h"
static BOOL isImplementationHospitalLearnCellDelegateFuction = NO;
@implementation BTHospitalLearnCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.firstView.delegate = self;
    // Initialization code
}

- (void)setModels:(NSArray *)models {
    _models = [models copy];
    self.firstView.models = models;
}


#pragma mark------------CWQ_historyLearnViewDelegate------------

- (void)learnView:(CWQ_historyLearnView *)learn didSelect:(id)model {

    if (isImplementationHospitalLearnCellDelegateFuction) {
        [_delegate cwq_selectCell:self model:model];
        return;
    }
    
    if ([_delegate respondsToSelector:@selector(cwq_selectCell:model:)]) {
        [_delegate cwq_selectCell:self model:model];
        isImplementationHospitalLearnCellDelegateFuction = YES;
    }

}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
